package com.ncs.leisure.overall.ui;

import javax.servlet.http.HttpSession;

import org.directwebremoting.WebContext;
import uk.ltd.getahead.dwr.WebContextFactory;

import com.ncs.leisure.beans.business.BeansContactBusiness;
import com.ncs.leisure.overall.business.ContactBusiness;

public class BasicForm {

	public WebContext ctx=null;
	
	public HttpSession session=null;
	
	public ContactBusiness contactBusiness=null;
	
	public BeansContactBusiness beansContactBusiness=null;
	
	public void loadSpring(){
		
		if(contactBusiness==null){
			
			ctx = WebContextFactory.get();
			
			session=ctx.getSession();

			contactBusiness=(ContactBusiness)ctx.getServletContext().getAttribute("NCSLeisure");

			beansContactBusiness=(BeansContactBusiness)ctx.getServletContext().getAttribute("NCSLeisure_beans");
			
		}
		
	}
	
}
